package com.ruoyi.web.controller.portal;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.service.WebInfoPortalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @PackageName com.ruoyi.web.controller.portal
 * @ClassName WebInfoController
 * @Auther jgg
 * @Date 2022-7-21 14:02
 */
@RestController
@RequestMapping("/portal/webinfo")
public class WebInfoController {

    @Autowired
    private WebInfoPortalService webInfoPortalService;

    /**
     * 分类
     *
     * @return
     */
    @GetMapping("/category")
    public AjaxResult getAllCategories() {
        return webInfoPortalService.getAllCategory();
    }

    /**
     * looper
     *
     * @return
     */
    @GetMapping("/looper")
    public AjaxResult getAllLooper() {
        return webInfoPortalService.getAllLooper();
    }

    /**
     * fridens
     * @return
     */
    @GetMapping("/friend")
    public AjaxResult getAllFriends() {
        return webInfoPortalService.getAllFrrendLinks();
    }

    /**
     * seo
     * @return
     */
    @GetMapping("/seo")
    public AjaxResult getWebSeo(){
        return webInfoPortalService.getWebSeo();
    }

    /**
     * title
     * @return
     */
    @GetMapping("/title")
    public AjaxResult getWebTitle(){
        return webInfoPortalService.getWebTitle();
    }




}
